home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / open_loo / 01_gener next >
Text File  |  1994-03-24  |  57KB  |  1,240 lines

  1. Newsgroups: comp.windows.open-look,alt.toolkits.xview,comp.windows.news,alt.sys.sun,alt.toolkits.intrinsics,comp.answers,alt.answers,news.answers
  2. Path: bloom-beacon.mit.edu!hookup!swrinde!cs.utexas.edu!utnut!utzoo!sq!lee
  3. From: lee@sq.sq.com (Liam Quin)
  4. Subject: OPEN LOOK GUI FAQ 01/04: General
  5. Message-ID: <liamfaq-ol1-24@sq.com>
  6. Followup-To: poster
  7. Summary: overview of OPEN LOOK Graphical User Interface
  8. Supersedes: <liamfaq-ol1-23@sq.com>
  9. Reply-To: lee@sq.com (Liam R. E. Quin)
  10. Organization: SoftQuad Inc., Toronto, Canada
  11. Date: Thu, 24 Mar 94 23:06:19 GMT
  12. Approved: news-answers-request@MIT.EDU
  13. Expires: 24 Apr 1994 02:49:16 GMT
  14. Lines: 1223
  15. Xref: bloom-beacon.mit.edu comp.windows.open-look:4194 alt.toolkits.xview:1499 comp.windows.news:662 alt.sys.sun:1730 comp.answers:4321 alt.answers:2209 news.answers:16814
  16.  
  17. Archive-name: open-look/01-general
  18.  
  19.  
  20. Frequently-asked questions about the OPEN LOOK Graphical User Interface.
  21.  
  22. If your question isn't here, please try (at *least*)
  23.     man openwin
  24.     man xnews
  25.     man 7 xview
  26. and looking in the appropriate manuals listed in the Bibliography below
  27. before posting to the comp.windows.open-look, comp.windows.x or
  28. alt.toolkits.xview newsgroups and/or their corresponding mailing lists.
  29.  
  30. Frequently Asked Questions for X11 are posted to comp.windows.x monthly.
  31.  
  32. This is version: $Revision: 1.49 $; Last posted version:  1.48
  33.  
  34. Contents: (in rn and trn you can use control-G to go to the next topic)
  35.  
  36.     Subject: Terminology: OPEN LOOK, OpenWindows, X11, XView, (MO)OLIT, Motif
  37.     Subject: The COSE agreement
  38.     Subject: Window Managers -- olwm, olvwm
  39.     Subject: OpenWindows, Terminals, and Other Displays
  40.     Subject: Configuration Files: Getting started with OpenWindows
  41.     Subject: Key Bindings, Cut and Paste
  42.     Subject: Applications: Finding Out...
  43.     Subject: DeskSet, Calendar Manager, etc.
  44.     Subject: Trouble Shooting: Strange Error Messages
  45.     Subject: Trouble Shooting: It Won't Let Me Type
  46.     Subject: Trouble Shooting: Not authorized to use display
  47.     Subject: Trouble Shooting: other common problems
  48.     Subject: Trouble Shooting: XView problems
  49.     Subject: Fonts
  50.     Subject: Environment Variables
  51.     Subject: Where Can I get It? Ftp, implementations, etc...
  52.     Subject: Bibliography -- books, manuals, journals, papers, beer-mats
  53.     Subject: Getting this File, Revision History, Recent Changes
  54.  
  55.  
  56. Subject: Terminology: OPEN LOOK, OpenWindows, X11, XView, OLIT, MOOLIT, Motif
  57.  
  58. @ What is OPEN LOOK?
  59.     OPEN LOOK is a specification of a Graphical User Interface (GUI).
  60.     A GUI determines the `look and feel' of a system -- the shape of
  61.     windows, buttons and scroll-bars, how you resize things, how you
  62.     edit files, etc.
  63.  
  64.     The OPEN LOOK GUI is specified, developed and maintained jointly by
  65.     Sun Microsystems and AT&T (or USL?).
  66.  
  67.     See Also:
  68.     Bibliography
  69.  
  70. @ What is OpenWindows?
  71.     OpenWindows is a windowing environment that conforms to the OPEN LOOK
  72.     Graphical User Interface Specifications.  It's compatible with the
  73.     X11 window system from MIT as well as (currently) Sun's NeWS and SunView,
  74.     so you can intermix programs written for any of those systems.
  75.     It comes from Sun and also with System V Release 4 from certain vendors.
  76.     OpenWindows is sometimes also called openwin or xnews, after the
  77.     program used to start it and the main executable itself, respectively.
  78.     It should not be called `Windows' or 'OPEN LOOK' or `OpenLook', as
  79.     these terms are either wrong or apply to something else.
  80.     A commerical OpenWindows source licence costs about $5,000 for the server,
  81.     plus about $25,000 for DeskSet, and another $40,000 for ToolTalk.
  82.     The current versions of OpenWindows for various platforms are:
  83.     SunOS 4.1.1 on Sun 3: 2.0
  84.     Solaris 1.x (SunOS 4.1.x) on SPARC: 3.0
  85.     Solaris 2.0 (SunOS 5) on SPARC: 3.0.1
  86.  
  87.     See Also:
  88.     Mixing X11 and OpenWindows
  89.     Where can I get it?
  90.  
  91. @ What are OLIT, XView and TNT?
  92.     These are all toolkits for programmers to use in developing programs
  93.     that conform to the OPEN LOOK specifications.  See the Bibliography
  94.     for documentation on the individual toolkits.  Here's a brief summary:
  95.  
  96.     OLIT was AT&T's OPEN LOOK Intrinsics Toolkit for the X Window system;
  97.     it used a widget set, and was probably the easiest for people who were
  98.     already X11/Xt programmers to learn.  You could buy the source from AT&T,
  99.     although you didn't get the same version tht Sun ship.  Sun includes the
  100.     OLIT library in OpenWindows (q.v.); it is also often included in
  101.     System V Release 4.  It was written in C.  OLIT support passed to USL
  102.     (then a division of AT&T, now owned by Novell), who replaced it with
  103.     MoOLIT (q.v.).
  104.     Note that because of the nature of Xt subclassing, you will probably
  105.     want or need OLIT source in order to develop a large application or
  106.     anything else that uses subclasses.
  107.     [see the proceedings of the 1991 X Technical Conference]
  108.     OLIT was until recently Sun's recommended toolkit, although until
  109.     Solaris 2 was released OLIT lacked a long way behind XView (q.v.) in
  110.     many important areas.
  111.  
  112.     XView is Sun's toolkit for X11, written in C.  XView is similar in
  113.     programmer interface to SunView.  There's even a shell script to help
  114.     migrate source code from SunView to XView.     XView is often said to be
  115.     the easiest toolkit to learn if you are not familiar with X Windows.
  116.     The XView toolkit is included in OpenWindows, and full source is
  117.     available by anonymous ftp from export.lcs.mit.edu (and elsewhere).
  118.     The current version of XView from Sun is 3.2.  The XView toolkit is
  119.     still supported by Sun, although few if any enhancements beyond version
  120.     3.2 should be expected.
  121.  
  122.     The NeWS Toolkit (TNT) was an object-oriented programming system based
  123.     on the PostScript language and NeWS.  TNT implements many of the
  124.     OPEN LOOK interface components required to build the user interface of
  125.     an application.  It's included in OpenWindows up to release 3.2, but is
  126.     not supported (and will not run) under OpenWindows 3.3 (based on X11R5).
  127.  
  128.     The current version of TNT from Sun is 3.1; Release 3 contains some
  129.     incompatibilities with `tNt' 1.0 and TNT 2.0, but Sun were committed to
  130.     supporting the API, at least until they released Solaris 2.3 and `replaced'
  131.     it with Display PostScript.  Wail.
  132.     Sun currently asserts that it is committed to OLIT, however.
  133.     Correction: Sun is now committed to COSE, which is committed to a new
  134.     Motif toolkit, and OLIT support will presumably be dropped until the
  135.     wind changes again.
  136.     Note:
  137.     Solaris 2.3 does not include Motif: SMCC is shipping Motif separately
  138.     as part of the Solaris Software Developer's Kit.  In addition, SMCC
  139.     is shipping an unbundled version of the Motif toolkit.
  140.     [from the Solaris 2.3 press release]
  141.  
  142.     The C++ User Interface Toolkit (UIT) consists of an object-oriented C++
  143.     class library layered on top of XView and a tool to generate code from
  144.     DevGuide 3 GIL files.  The UIT also includes features that simplify
  145.     event management and the use of PostScript and color.  It is said to be
  146.     compatible with OpenWindows V2 and V3, and presumably beyond, since the
  147.     release mentions that it works on Solaris 2.
  148.     UIT is not an official Sun-supported product but an ongoing project of
  149.     various people within Sun.  It can be found on export.lcs.mit.edu in
  150.     the MIT contrib directory as UITV2.tar.Z
  151.  
  152. @ Where does Motif fit in?
  153.     Motif is an alternative Graphical User Interface that was developed by OSF.
  154.     It has a `look and feel' reminiscent of Microsoft Windows and the OS/2
  155.     Presentation Manager.  There are no non-commercial Motif toolkits
  156.     available, and the Motif source by OSF.
  157.     OSF/Motif will be included in COSE (q.v.) in a somewhat changed form.
  158.  
  159. @ What is MoOLIT?
  160.     MoOLIT is a version of OLIT from AT&T/USL that lets users choose between
  161.     a Motif and an OPEN LOOK UI feel at run-time.  It will be part of System V
  162.     Release 4.2.  Contact: Joanne Newbauer, jo@usl.com, (908) 522-6677
  163.  
  164. @ What about that Display PostScript thing?
  165.     Sun and Adobe have agreed that Sun will include the DPS extension to X
  166.     in the next release of OpenWindows, 3.3 (or 4?), under Solaris 2.
  167.     Unfortunately, this has also meant dropping the NeWS server, and hence
  168.     the NeWS toolkit (TNT), with what many consider to be a significant loss
  169.     of functionality and ease of programmability as a result.  On the other
  170.     hand, a number of commercial applications such as Adobe Illustrator are
  171.     being ported to the Sun.
  172.     See the Solaris Porting guide [see Bibliography below] for a few more
  173.     details.
  174.  
  175. Subject: The COSE agreement
  176.  
  177. @ What is COSE?
  178.     The Common Operating System Environment is an agreement by several of
  179.     the largest Unix manufacturers, including e.g. Sun, HP, IBM and SCO, to
  180.     provide a compatible windowing environment (CDE) across all platforms.  It's
  181.     widely rumoured that only fear of Windows NT could have brought this on.
  182.  
  183. @ What's it like?
  184.     A snapshot of the Common Desktop Environment for HP, Sun, IBM, USL, SCO
  185.     has been released on CD/ROm and was given out at the CDE develoer's
  186.     conference.
  187.  
  188.     Some of the features include:
  189.     * Sun's Mailtool and Calander Manager
  190.     * Sun's ToolTalk protocol for desktop interoperability
  191.     * IXI's desktop file manager
  192.     * HP's VUE desktop manager - a little like olvwm without the map
  193.     * a Motif toolkit that offers all of the OPEN LOOK UI controls and
  194.       window decorations.  It isn't clear to me in what way it's still Motif.
  195.     * various games and demonstrations, `the entertainment value of these
  196.       should not be underestimated' :-)
  197.     * Sun's F3 outline font technology [actually I don't see this yet]
  198.  
  199. @ Why would I want it?
  200.     If you're using OpenWindows you probably don't, particularly, but you're
  201.     not the targeted market.  If you are not yet using X11 at all, or if you
  202.     get fed up of all the differences between the various vendors' X11
  203.     environments, you'll probably be interested.
  204.  
  205. @ When can I have it?
  206.     Not until next year, in order to give Windows NT a fair start :-)
  207.  
  208.  
  209. Subject: Window Managers -- olwm, olvwm
  210.  
  211. @ What are olwm and olvwm?
  212.     They are window managers.  A window manager is the part of the X Window
  213.     system (e.g. X11) that is responsible for deciding how to lay out windows
  214.     on the screen, and for managing the user's interaction with the windows.
  215.  
  216.     Olwm is the standard OPEN LOOK window manager.
  217.     It's included with all of the OpenWindows (q.v.) implementations, and
  218.     you can also get the source by ftp, since Sun donated it.
  219.  
  220.     Olvwm is a version of olwm that manages a `virtual desktop' (hence the
  221.     `v' in its name).  It shows a little map on the screen, with the
  222.     currently displayed area represented by a little rectangle.     You can
  223.     move around by dragging the rectangle or with the arrow keys.  This
  224.     lets you run several clients (applications) and move the display around
  225.     from one to the other.  Olvwm was derived from the OpenWindows 3.0 olwm
  226.     by Scott Oaks; you need to have libolgx (from XView 3.x) to compile it.
  227.     Get olvwm from an ftp site such as export.lcs.mit.edu (in the contrib
  228.     directory; there are three patches).
  229.  
  230. @ Can I use my favorite window manager with OpenWindows instead of olwm?
  231.     Yes.  If you use twm, for example, or mwm, you won't be able to use
  232.     the Pin and Unpin feature of olwm, and you (probably) won't see the
  233.     footers some windows use to display certain messages.
  234.  
  235.     If you use twm, you'll want to use the f.delete function to unpin menus
  236.     and get rid of programs that don't have a `quit' button when not run
  237.     under olwm.
  238.     For twm, put this in your $HOME/.twmrc:
  239.     LeftTitleButton "target" = f.delete
  240.     where "target" is a 16x16 icon from /usr/include/X11/bitmaps.
  241.     Alternatively, try
  242.     # Add a menu to each window managed by twm or tvtwm
  243.     LeftTitleButton ":menu" = f.menu "OL.menu"
  244.  
  245.     menu "OL.menu" {
  246.         "Quit"         f.delete
  247.     }
  248.  
  249.     For mwm, you can double-click on the menu icon on the left of the title
  250.     bar to dismiss a pop-up window (I am told).  XView windows might simply
  251.     iconify themselves; there's a C work-round for this involving editing
  252.     the program to make the windows `transient'.
  253.  
  254.     See the manual page for your window manager (twm, etc).
  255.  
  256. Subject: OpenWindows, Terminals, and Other Displays
  257.  
  258. @ Can I use olwm and olvwm without OpenWindows or on an X Terminal?
  259.     The OpenWindows xnews server combines SunView, NeWS (PostScript) and X11.
  260.     This means that it can run programs compiled for any of those systems.
  261.     Unfortunately, it means that some OpenWindows programs need either NeWS
  262.     or SunView support, and thus won't run on an X terminal.  This includes
  263.     pageview in particular.
  264.  
  265.     You can use olwm or olvwm (see above) on an X terminal or a non-Open-
  266.     Windows display, and most OPEN LOOK clients (e.g. OLIT or XView ones)
  267.     will work perfectly well.  You may find that you get complaints about
  268.     fonts not being found.  If so, see the Fonts section below.
  269.     If you are running the window manager built-in to an NCD terminal, you
  270.     may have problems with input focus; setting *Input: True in the terminal's
  271.     XDefault file in /usr/lib/X11/xdm may or may not help.
  272.  
  273.  
  274. Subject: Configuration Files: Getting started with OpenWindows
  275.      
  276. @ What configuration files do I need to know about?
  277.  
  278.     .xinitrc and .xsessionrc
  279.  
  280.     The first time you run OpenWindows, a .xinitrc file will be created in
  281.     your login directory ($HOME).  If it already exists, you might have to
  282.     edit it somewhat; it's simplest to move it and any other old X11 files
  283.     you have to another directory, and then merge the old and new files.
  284.  
  285.     If your site uses xdm, you should use .xsession instead of .xinitrc,
  286.     since xdm doesn't look at your .xinitrc file.
  287.  
  288.     .openwin-init, .openwin-menu and .openwin-sys
  289.  
  290.     These are optional files you can create in your $HOME directory,
  291.     depending on which version of olwm or olvwm you use.
  292.     Look in $OPENWINHOME/lib (normally /usr/openwin/lib) for these files
  293.     without the leading . and copy any you want to change.  You may need
  294.     to edit your .xinitrc to get them recognized.  If you are not on an
  295.     X terminal, you will want to run a console window (such as cmdtool -C,
  296.     shelltool -C, xterm -C) or Chuck Musciano's "contool" program so that
  297.     system output will be directed there instead of writing over your screen.
  298.     Note that .openwin-sys is not executed unless you edit .xinitrc.
  299.  
  300.     .Xdefaults
  301.  
  302.     You can put X Windows resource specifications in here.  In particular,
  303.     it is a good idea to include at least:
  304.     OpenWindows.FocusLenience:    true
  305.     *Input: TRUE
  306.     These allow non-ICCCM-compliant programs to receive input even if they
  307.     forget to ask for it.
  308.  
  309.     Props, the program that runs when you select `properties' from the default
  310.     root menu under olwm or olvwm, writes your choices into .Xdefaults.
  311.     Don't put comments in .Xdefaults, since `props' deletes them.
  312.  
  313.     .startup.ps
  314.  
  315.     This is the NeWS user profile file, read by OpenWindows (actually xnews)
  316.     on startup.     This is documented in the NeWS programming manual, near the
  317.     back.  The most useful thing to put here is PostScript code to change
  318.     the keyboard repeat rate, although you must be very careful, since a
  319.     syntax error in the PostScript means that xnews will either not start up
  320.     at all or will get broken in strange ways.    The NeWS manual gives code
  321.     that is both incorrect and insufficient.
  322.     WARNING: things in this file rarely work on both OpenWindows 2 and 3.
  323.  
  324.     Note that the mouse speed is best set in your .xinitrc with xset m; see
  325.     the man page for xset ("man xset", and "xset -help") for more information.
  326.  
  327.     Here's what $HOME/.startup.ps  should look like if you want a delay of
  328.     about a third of a second (300000 microseconds), and a repeat rate of
  329.     twenty or so keys per second (30000 microseconds between repeats) for
  330.     OpenWindows 3.  You'll have to experiment a bit because the RepeatTime
  331.     is the delay between keys sent, and thus doesn't include the time to
  332.     process each key, which is probably higher on my 4/110 than on your
  333.     SuperSPARC 10/51 GTi injection :-)  Again, this is for OpenWindows 3...
  334.  
  335.     % don't want the demos - see p. xxxii of NeWS Toolkit Reference Manual
  336.     % /IncludeDemos? false def
  337.  
  338.     UserProfile begin
  339.         /KeyRepeatThresh 0 300000 timeval storetimeval def
  340.         /KeyRepeatTime 0 30000 timeval storetimeval def
  341.         % Note: 300000 and 30000 differ greatly...
  342.     end
  343.  
  344.     You must also have a .user.ps file in the same directory, like this:
  345.  
  346.     /NeWS 3 0 findpackage beginpackage
  347.     /TNTCore 3 0 findpackage beginpackage
  348.     /TNT 3 0 findpackage beginpackage
  349.  
  350.     ClassRepeatKeys pop    % force repeat.ps to autoload
  351.  
  352.     endpackage endpackage endpackage
  353.  
  354.     If you change these parameters, you can test them without restarting the
  355.     OpenWindows server like this:
  356.     $ psh -i .startup.ps
  357.     Welcome to X11/NeWS Version3
  358.     $ psh -i
  359.     Welcome to X11/NeWS Version3
  360.     /classinit ClassRepeatKeys send
  361.     %%% now press control-D
  362.  
  363.     You can also either of these two files (.startup.ps and .user.ps) to make
  364.     the root window be "retained", so that a PostScript drawing on the
  365.     background won't be erased when you move windows:
  366.     frambuffer /Retained true put
  367.     will do this.  Note that this may increase the amount of memory used
  368.     by the NeWS server (xnews) dramatically.
  369.     
  370.     See also:
  371.     Trouble Shooting: It Won't Let Me Type
  372.     Trouble Shooting: Is there an easy way to edit Xdefaults?
  373.     Environment Variables
  374.  
  375. @ How can I configure OPEN LOOK for a left-handed mouse and keyboard?
  376.     You can use xmodmap to change the mouse buttons, but be prepared for one
  377.     or two occasional surprises.  See also "man 7 xview" for a list of
  378.     keybindings you can change, at least for XView programs.
  379.  
  380.     With OpenWindows 2.0, you can use defaultsedit to set the mouse mappings
  381.     and then let SunView handle them.  The status returned by svenv should
  382.     tell you whether your server is running under SunView or not; put this
  383.     in your .xinitrc:
  384.  
  385.     if eval `svenv -env`
  386.     then
  387.     xmodmap -e "pointer = 1 2 3"
  388.     input_from_defaults
  389.     else
  390.     xmodmap -e "pointer = 3 2 1"
  391.     fi
  392.  
  393.  
  394. @ How can I get the screen to go blank when the system is idle?
  395.  
  396.     Run screenblank from /etc/rc.local if you can; it's a boring but
  397.     effective screen saver.  See `man screenblank'.
  398.     Under Solaris 2 you'll need to copy screenblank from an older system, as
  399.     it's not supplied.  Then add a new file in /etc/rc2.d to make the system
  400.     run screenblank automatically.
  401.  
  402. Subject: Key Bindings, Cut and Paste
  403.  
  404. @ How do I cut and paste between XTerm and OpenWindows programs?
  405.  
  406.     To go from XTerm to textedit (say):
  407.     * Select the text you want to copy by dragging the SELECT mouse button
  408.       in xterm
  409.     * Press COPY in the XTerm (this key is L6, or Meta+c (the O'Reilly
  410.       XView manual gets this wrong)
  411.     * Move to the textedit window, and press PASTE (L8 or Meta+v)
  412.  
  413.     If this doesn't work, see Trouble Shooting: Cut and Paste
  414.  
  415.    To go the other way, from textedit to XTerm:
  416.     * Select the text in textedit.  No need to use COPY
  417.     * Move to the XTerm window and press ADJUST (the middle mouse button).
  418.     * You can also use the COPY/CUT and PASTE buttons.
  419.  
  420. @ COPY/PASTE is boring.     What short-cuts are available?
  421.  
  422.     Quick Copy within textedit, mailtool, etc:
  423.     * Click SELECT to get a text caret where you want the copied text to go
  424.     * Press and HOLD DOWN the PASTE (or CUT) button
  425.     * Select the text you want to copy/move.  You'll see that it's underlined
  426.       or crossed out, as appropriate.  (In the jed demo it goes grey)
  427.     * Let go of the PASTE (or CUT) button.
  428.     * The text you underlined or crossed out appears at the insert caret.
  429.  
  430.     Drag and Drop to Move a Selection
  431.     * Select the text you want to copy or move, by dragging or multiple-
  432.       clicking the SELECT or ADJUST mouse button
  433.     * Put the mouse pointer anywhere within the selection
  434.     * Press and HOLD DOWN down the SELECT mouse button, and move the mouse
  435.       pointer a little to the right; you'll see the cursor changes to be the
  436.       first 3 letters of the text (or some other icon).
  437.     * Still holding SELECT down, move the mouse over the point where you want
  438.       to drop the text
  439.     * You may see the mouse pointer change to a rifle-sight or target, to show
  440.       that it's OK to drop things here
  441.     * Let go of SELECT, and the text is moved.    This works in text fields of
  442.       dialogue boxes as well as in text subwindows.
  443.  
  444.     Drag and Drop to Copy a Selection
  445.     * This is the same as using Drag and Drop to Move a Selection, except that
  446.       you must hold the CONTROL key down as well as the SELECT mouse button.
  447.  
  448. [several sections moved to "deskset.faq" posted separately]
  449.  
  450. Subject: Applications: Finding Out...
  451.     Contact SunSoft (or Sun) and ask for the Catalyst OPEN LOOK guide,
  452.     which lists over 200 pages of applications, and also the _huge_
  453.     Catalyst listing of products for Suns, updated six-monthly.
  454.  
  455.     Sun's free CDWare CD/ROMs each contain demo versions of several popular
  456.     OPEN LOOK applications.  Often you can simply contact the vendor
  457.     concerned to have the license upgraded from demo, and receive the full
  458.     product documentation.
  459.  
  460.     SunPICS produces a CD/ROM for NeWSPrint users, Printer's Pallate, which
  461.     contains NeWSprint drivers for a variety of printers and plotters, as
  462.     well as 600 scaleable fonts that you can license.
  463.  
  464.     There is a separate FAQ posting in comp.windows.open-look that lists
  465.     a number of free and commercial aplications; mail lee@sq.com for a
  466.     copy, including OPEN LOOK UI Application List in the Subject for a
  467.     faster reply.
  468.  
  469. Subject: Fonts
  470.  
  471. @ Does OpenWindows support Type 1 PostScript fonts?
  472.     Yes, under either Solaris 2.  You must use .pfa format, not .pfb;
  473.     I have a program to convert them (lee@sq.com, ask for pfb2ps).
  474.     You will want to add an "XLFD" alias, e.g.
  475.     /-bruce rogers-centaur-medium-r-normal--0-0-0-0-p-0-iso8859-1
  476.     /Centaur-Roman _FontFamilySYN
  477.     (put these all on one line with tabs between them, in Synonyms.list,
  478.     before running bldfamily).
  479.  
  480.     If you have FrameMaker there is a utility to import them, I'm told.
  481.     The 57 fonts supplied with OpenWindows are fully hinted, though, and
  482.     comparing them to the Microsoft Windows and Apple TrueType fonts is
  483.     interesting...  The F3 font format is described in a publication from the
  484.     Sun OpenFonts group, listed in the Bibliography below.  Documentation on
  485.     the unbundled version of TypeScaler is also available from Sun OpenFonts.
  486.  
  487.     You can buy F3 fonts from SunPICS, Monotype, Linotype, URW and probably
  488.     other major foundries.
  489.  
  490.     SunPICS' NeWSPrint software supports both F3 and Type 1 fonts.
  491.  
  492.     TtrueType fonts are not supported at this time.
  493.  
  494. @ Improving font rendering time
  495.     Although the Sun type renderer (TypeScaler) is pretty fast, it's not as
  496.     fast as loading a bitmap.  You can pre-generate bitmap fonts for sizes
  497.     that you use a lot, and you can also alter and access the font cache
  498.     parameters.     If you have a lot of memory you might want to increase the
  499.     font cache size.
  500.     $ psh -i
  501.     Welcome to X11/NeWS Version3 <--- psh will say this at you
  502.     currentfontmem =    % type this line ...
  503.     300    % and here's whai my server was using -- 300 Kbytes
  504.     2000 setfontmem
  505.     % Just to check:
  506.     currentfontmem ==
  507.     2000
  508.     See pp. 328ff of the NeWS 3.0 Programmer's Guide.  You need to say psh -i
  509.     so that the NeWS packages are loaded, since the font memory controls
  510.     are NeWS extensions to PostScript - see the psh man page.
  511.  
  512. @ Making bitmap fonts for faster startup:
  513.     $ mkdir $HOME/myfonts
  514.     $ cd $HOME/myfonts
  515.     $ makeafb -20 -M $OPENWINHOME/lib/fonts/Bembo.f3b
  516.     Creating Bembo20.afb
  517.     $ convertfont -b Bembo20.afb
  518.     Bembo20.afb->./Bembo20.fb
  519.     Chars parameter greater than number of characters supplied.
  520.     $ ls
  521.     Bembo20.afb    Bembo20.fb    Synonyms.list
  522.     $ bldfamily
  523.     * Bembo               ./Bembo.ff (Encoding: latin)
  524.     cat: ./Compat.list: No such file or directory
  525.     $ xset +fp `pwd`
  526.     $ xset fp rehash
  527.  
  528.     If you want the server to see your new font directory every time,
  529.     add this directory to your FONTPATH environment variable in one
  530.     of your start-up files, e.g. .login or .profile.
  531.  
  532. @ Converting between font formats (convertfont, etc.)
  533.     You can also use Folio fonts with an X11 server, by converting them to a
  534.     bitmap (X11 bdf format) first.  Your licence forbids you from using the
  535.     fonts on another machine, and unless you have NeWSPrint you shouldn't
  536.     use them for printing.  Having said all that...  you can use makeafb and
  537.     convertfont to generate bdf files that you can compile with bdftosnf or
  538.     bdftopcf.
  539.  
  540.     Use mftobdf (from the SeeTeX distribution) to convert TeX pk fonts to
  541.     X11 bdf format, which you can then use with either X11 or OenWindows.
  542.  
  543.     You can also use der Mouse's "getbdf" to get bdf fonts from a running
  544.     X display server -- ftp: larry.mcrcim.mcgill.edu (132.206.1.1) /X/getbdf
  545.  
  546. @ Xview/OLIT fonts at 100 dpi
  547.     Put $OPENWINHOME/lib/fonts/100dpi first in your font path.  The glyph
  548.     font for XView controls isn't scaled until Solaris 2, when OLIT, TNT
  549.     and XView all use the same scaled font for controls.  You could probably
  550.     generate a bitmap (see above) for use on other systems, since the font
  551.     is included in the XView source, but I don't know if that's legal.
  552.  
  553. Subject: Trouble Shooting: Strange Error Messages
  554.  
  555. @ No manual entry for cm_lookup
  556.  
  557.     If man doesn't seem to find OpenWindows commands, even though you are
  558.     running OpenWindows, try setting the MANPATH environment variable:
  559.     MANPATH=$OPENWINHOME/share/man:/usr/man; export MANPATH
  560.     or
  561.     setenv MANPATH $OPENWINHOME/share/man:/usr/man
  562.     for csh users.  $OPENWINHOME should be /usr/openwin on most systems.
  563.  
  564. @ window: Window creation failed to get new fd 
  565. @ window: Base frame not passed parent window in environment 
  566. @ Cannot create base frame.  Process aborted. 
  567.  
  568.     These messages all come from SunView programs.  SunView was an
  569.     earlier windowing system for Suns, and was not networked.  Some of
  570.     the SunView programs are still around in /usr/bin, and have names
  571.     that are the same as their OpenWindows counterparts.  You almost
  572.     certainly want to run the programs in $OPENWINHOME instead.
  573.  
  574.     Set your path so that $OPENWINHOME/bin (and $OPENWIN/bin/xview for
  575.     OpenWindows 2) come before /bin (or /usr/bin, they're the same), or
  576.     you'll get the SunView versions of mailtool, cmdtool, shelltool, etc.
  577.  
  578.     If you are trying to run SunView programs, use
  579.     eval `svenv -env`
  580.     (see the man page for svenv) before running Sunview programs; you
  581.     can put this in your .xinitrc file.  The default Sun .xinitrc has this
  582.     already.
  583.  
  584.     NOTE:
  585.     You can't run SunView programs on an X terminal.  You can't run
  586.     SunViw programs to display anywhere except on the console of the
  587.     host running the program.  You may need to be running OpenWindows
  588.     rather than X to run Sunview programs (X can be compiled to work
  589.     with SunView, though).
  590.     SunView programs do not work beyond Solaris 2.2, so you should
  591.     consider moving.
  592.  
  593.  
  594. @ memory fault - core dumped
  595.     If you get this from the binder, or if binder vanishes suddenly,
  596.     get the following patches:
  597.     100493-02 Binder
  598.     100524-03 Cetables
  599.     100626-03 Tooltalk
  600.  
  601. @ Trouble compiling Xt, Xmu or OLIT programs: _get_wmShellWidgetClass
  602.  
  603.     If you are using OpenWindows 3.0 (X11R4-based Xt), contact your local
  604.     Sun office and request the following patches:
  605. 100512-02   4.1.x OpenWindows 3.0 libXt Jumbo patch
  606. 100573-03   4.1.x OpenWindows 3.0 undefined symbols when using shared libXmu
  607.  
  608.     If you can't install the patch, a workaround is to add 
  609.     -u get_wmShellWidgetClass -u get_applicationShellWidgetClass
  610.     on the link (ld or cc ... -o ...) line.  An alternative is to add
  611.     -assert nodefinitions
  612.     to CFLAGS in your Makefile, or even in Imake.tmpl.
  613.  
  614.  
  615. Subject: Trouble Shooting: It Won't Let Me Type
  616.  
  617. @ When I try to type into some programs, I just get beeps or nothing happens
  618.     It is a good idea to include at least:
  619.     OpenWindows.FocusLenience:    true
  620.     *Input: TRUE
  621.     in your .Xdefaults file, as these allow non-ICCCM-compliant programs to
  622.     receive input even if they forget to ask for it.
  623.     See the next item for editing .Xdefaults
  624.  
  625. Subject: Trouble Shooting: Cut and Paste not working
  626.  
  627. @ I can't paste from xterm to XView (including Sun DeskSet) programs
  628.     Under OpenWindows 2, you need to add the following either to your
  629.     $HOME/.Xdefaults file, or to $OPENWINHOME/lib/app-defaults/XTerm instead:
  630.  
  631.     XTerm*VT100.Translations: #override \
  632.         <Key>L6:select-set(CLIPBOARD)\n\
  633.         <Key>L8:insert-selection(CLIPBOARD)
  634.   
  635.     You must not move the mouse between ending the selection and pressing
  636.     L8 (the Paste key)!
  637.  
  638.     Under OpenWindows 3, this is already in the app-defaults file, so if it
  639.     isn't working, check that XFILESEARCHPATH is set to
  640.     /usr/openwin/lib/%T/%N%S
  641.     and if it isn't, either set it or copy/merge the above lines from
  642.     $OPENWINHOME/lib/app-defaults/XTerm into /usr/lib/X11/app-defaults/XTerm.
  643.     [See also: Environment Variables]
  644.  
  645.     This version automatically puts each xterm selection onto the clipboard:
  646.     XTerm*VT100.translations: #override\n\
  647.         ~Ctrl ~Meta<Btn2Up>: insert-selection(PRIMARY,CUT_BUFFER0)\n\
  648.         ~Ctrl ~Meta<BtnUp>: select-end(PRIMARY,CUT_BUFFER0,CLIPBOARD)\n\
  649.         <KeyPress>L8: insert-selection(CLIPBOARD)
  650.     [Note: be sure that the \n\ is at the very end of the line, there must
  651.      be no following spaces, and any + or | signs showing that this FAQ file
  652.      was altered must also be removed!]
  653.  
  654.     If you are using X11R5, you may find that adding the lines
  655. <Key>L10: start-extend() select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0)\n\
  656.        <KeyRelease>L10: kill-selection() \n
  657.     before the <KeyPress>L8 line will make L10 (CUT) work as a cut key!
  658.  
  659.     If you alter $HOME/.Xdefaults instead, you must use what X calls a
  660.     `more specific' resource name:
  661.     xterm.vt100.translations
  662.     will do.
  663.  
  664. @ I can't paste from XView (including Sun DeskSet) programs to xterm
  665.  
  666.     If you don't have the Sun L keys on the left of your keyboard, you can
  667.     use Meta-x, Meta-c and Meta-v for cut, coy and paste respectively.
  668.     You can change the keys by adding the following two lines to
  669.     your .Xdefaults file, edited as you wish (the values shown here are the
  670.     defaults):
  671.  
  672.     Openwindows.KeyboardCommand.Copy: c+Meta,L6
  673.     OpenWindows.KeyboardCommand.Paste", "v+Meta,L8
  674.     
  675.     Lists of resources are in the manual page for xview, and also in the
  676.     thinnish blue book `Companion to Volume 7, XView Reference Manual' from
  677.     O'Reilly, and also in the olwm and olvwm manual pages.
  678.  
  679. @ I can't copy and paste between OSF/Motif and OpenWindows programs.
  680.  
  681.    Adding the following lines to your .Xdefaults file may help:
  682.     *XmText.translations: #override\n\
  683.             <Key>L6:        copy-clipboard()\n\
  684.             <Key>L8:        paste-clipboard()\n\
  685.             <Key>L10:       cut-clipboard()\n
  686.     *XmTextField.translations: #override\n\
  687.             <Key>L6:        copy-clipboard()\n\
  688.             <Key>L8:        paste-clipboard()\n\
  689.             <Key>L10:       cut-clipboard()\n
  690.  
  691. @ I always get the same piece of text when I press PASTE (L8, Meta+v)
  692.     Remove the file /tmp/textsw_shelf and see if that helps; see also the
  693.     next item.
  694.  
  695. @ Cut Copy and Paste don't work at all (OpenWindows only)
  696.     Oh dear.  Use ps -xuaww | grep xv  to check that sv_xv_sel_svc is running
  697.     and that either you or root started it, depending on whether you started
  698.     OpenWindows with "openwin" or by logging in through xdm.
  699.     If not, start it.  If it dies, check that there is no /tmp/.sv_xv_sel_svc
  700.     before restarting it - you may need to be root to remove it, or you can
  701.     reboot your workstation.
  702.     Check that there is space in /tmp (use "df /tmp"), and also see if there
  703.     are a lot of files there with names like /tmp/tty.txt.a01246; if there are
  704.     several hundred of them, cut and paste may take so long that it times out.
  705.  
  706.     Quit any deskset tools such as mailtool, filemgr and cm (calendar), start
  707.     a terminal emulator and remove and /tmp/tty.txt* and /tmp/Text* files
  708.     that are still there.  It's simplest to quit openwin and start it again
  709.     after doing that, if cut and paste was broken, but if it starts working
  710.     again you can just carry on.  Note that files in /tmp not owned by you
  711.     might be in use by another worker comrade, so don't remove those without
  712.     checking first!
  713.  
  714. Subject: Trouble Shooting: Not authorized to use display
  715.  
  716.     If you get error messages that look like
  717.     Xlib:  connection to ":0.0" refused by server
  718.     Xlib:  Internal error during connection authorization check
  719.     Error: Can't Open display
  720.     try, on the machine running OpenWindows or X11,
  721.     xhost +machine
  722.     where "machine" is the computer on which you ran the command that failed.
  723.     If you want to let other users run programs on the same machine as you,
  724.     using your display, you will have to type the bizarre-looking
  725.     xhost +`hostname`
  726.     (or xhost +happyboy, if happyboy is the name of your workstation).
  727.     This lets ANY user on `happyboy' access your display.
  728.  
  729.     With OpenWindows 3 you can also use xauth, and the Programmer's Guide 
  730.     describes how to do this in Chapter 8, p. 101.  This is more secure.
  731.     Also check the man page for fbtab(5) to stop other users accessing the
  732.     framebuffer directly!
  733.  
  734.     Also note that there is a Sun patch for OpenWindows 3.0 under SunOS 4.1.1
  735.     to fix a serious security problem.  It is available through your local
  736.     Sun Answer Center as well as through anonymous ftp from ftp.uu.net
  737.     [192.48.96.2] system in /sun-dist:
  738.     Fix                     PatchID        Filename            Checksum
  739.     loadmodule              1076118        100448-01.tar.Z     04354  5
  740.  
  741.     On an X Terminal, there may be a setup menu that lets you change or
  742.     disable the list of hosts that can access the display.
  743.  
  744.     If you start getting this message after you've been logged in overnight,
  745.     there might be a cron job that's removing the Unix sockets in /tmp
  746.     that are used to communicate with the server when $DISPLAY doesn't have
  747.     a hostname before the :, or is empty.  Have the system administrator
  748.     change the cron script to skip sockets, or log out when you go home!
  749.  
  750. Subject: Trouble Shooting: other common problems
  751.  
  752. @ I get console error messages on my screen and they don't go away (Sun 3 or 4)
  753.     If "refresh" makes the messages vanish, but new ones come along later,
  754.     you need to run "xterm -C" from your .xinitrc, or start one up in
  755.     the background and then  choose Save Workspace from the
  756.     Workspace->Utilities menu.  Better still, pick up "contool" and run
  757.     that.  Get it from export.lcs.mit.edu in the contrib directory.  It
  758.     will monitor the console and open, flash its icon or beep when a
  759.     message appears; it's very easy to configure.
  760.  
  761.     If "refresh" from the Workspace->Utilities menu doesn't make the messages,
  762.     go away...
  763.     a Sun with a cg4 frame buffer has two screens - you can move the
  764.     mouse off the right-hand (by default) edge of the screen and onto
  765.     a whole new (but monochrome) display, called ":0.1".  See the man.
  766.     page for openwin; I have a shell script that checks for this and,
  767.     if there's a /dev/cgfour0, does
  768.         openwin -dev /dev/cgfour0 -dev /dev/bwtwo0
  769.     If you are running X11 or OpenWindows 2, you might need to add this
  770.     to your .xinitrc or other startup file:
  771.     (
  772.         eval `svenv -display unix:0.1 -env`
  773.         olvwm -display unix:0.1
  774.     ) &
  775.     Later releases of olwm and olvwm do this automatically.
  776.     You can also run switcher -e 0 to get rid of the messages.  Also, see
  777.     the note about contool, above.
  778.  
  779. @ Is there an easy way of editing .Xdefaults?
  780.     Use `props', which appears in the default root menu as `properties'.
  781.     This starts `props', a property editor which will re-write your
  782.     .Xdefaults after removing comments.  It then applies any changes.
  783.     Keep comments by using "comment." instead of "!", for example,
  784.     comment.*.font: Palatino-Italic-37
  785.  
  786. @ How do I get the File manager to use emacs instead of textedit?
  787.     set the default editor to
  788.     sh -c "exec emacs -font lucidasanstypewriter-18 \"$FILE\""
  789.     (you can change the font if you prefer a smaller one)
  790.  
  791. @ How do I run OpenWindows in inverse video?
  792.     This tends not to work under OpenWindows 2.     With OpwnWindows 3.0,
  793.     there are various ways, including using -bg and -fg options.  If you're
  794.     using OpenWindows 2 on a Sun 3 , probably the best you can do (short of
  795.     upgrading the workstation to a SPARC!) is to use xterm instead of cmdtool.
  796.  
  797. @ Why don't flat check-boxes work?
  798.     A known bug may make Guide's output dump core if you use these.
  799.     A workaround is to edit the Guide output, as it's only Guide's output
  800.     that's broken, not the actual check-box code.
  801.     This applies only to versions of DevGuide before Devguide 3.0.  If you're
  802.     still using an ancient DevGuide, you should upgrade as soon as possible;
  803.     the new one is fantastic!
  804.  
  805. @ When I leave OpenWindows, my screen goes blank or my mouse cursor stays
  806.   on the screen.
  807.     Try running clear_colormap; if this helps, put it as the last line in
  808.     the shell script you use to start OpenWindows (e.g. `openwin').
  809.  
  810. @ When I use snapshot, the system crashes, or the server hangs, or something.
  811.     This was a bug related to some systems only.  The only work-round was to
  812.     use some other screen dump program, such as xwd, xv 2.21 or xgrabsc.
  813.     
  814. @ Why have some of my function keys stopped working?
  815.     Keys F11 and F12 changed from SunF36 and SunF37 to SunXK_F36 and SunXK_F37
  816.     respectively in OpenWindows 3.  Applications must be recompiled, or you
  817.     might be able to use xmodmap or the public domain xkeycaps program to
  818.     change your keyboard layout back again.
  819.  
  820. @ When I type shelltool or cmdtool or textedit, I get the Sunview version
  821.     See under "Trouble Shooting: Strange Error Messages" below.
  822.  
  823.     (see also next item)
  824.  
  825. @ Mixing X11 and OpenWindows
  826.     (see also next item)
  827.  
  828.     Note that OpenWindows 3.0 includes the X11R4 core distribution (to patch
  829.     level 18), but not the contrib directory.  These notes apply to
  830.     OpenWindows 2.0, although you could also the do same sort of thing with
  831.     OpenWindows 3.0 and X11R5.
  832.  
  833.     Install the X11 libraries in /usr/lib/X11.    You can intermix OpenWindows
  834.     and X11R4 or X11R5, they're all compatible in this respect.
  835.     Put the X11 binaries in (for example) /usr/bin/X11.
  836.  
  837.     Put /usr/bin/X11 last in your PATH, so that you get OpenWindows versions
  838.     of programs instead of X11 ones where appropriate, although this is a
  839.     matter of preference.  In any event, put the OpenWindows bin directory
  840.     first -- see the preceding item for more details on that.  If you have
  841.     /bin (or /usr/bin, they're the same directory on SunOS) earlier in
  842.     your PATH than $OPENWINHOME/bin/xview, you'll get SunView programs instead
  843.     of OpenWindows ones!
  844.  
  845.     Set LD_LIBRARY_PATH so that /usr/openwin/lib is last, after the X11
  846.     library directory.    This doesn't matter with OpenWindows 3.0, but with
  847.     older versions you'll get error messages from X11 programs if you don't
  848.     do this.  The messages are generally harmless (see next item), although
  849.     xdm core dumps if this isn't right.
  850.  
  851.     Set OPENWINHOME to the directory containing OpenWindows if it isn't
  852.     /usr/openwin.
  853.  
  854.     NOTE:
  855.     OpenWindows 3.3 is based on X11R5, so you don't need to do this.
  856.     In fact, you might as well simply stick to the Xsun server provided
  857.     by Sun, unless it turns out to be buggy.  OpenWindows 3.3 (or 4.0?)
  858.     will probably be released (with Solaris 2.3?) later this year.
  859.  
  860.     See Also:
  861.     Environment Variables (especially XFILESEARCHPATH).
  862.  
  863. @ I get error messages on my screen about ld.so: libX11.so.4 not found
  864.     set LD_LIBRARY_PATH to be /usr/openwin.  If you also use X11, use
  865.          /usr/lib:/usr/5lib:/usr/openwin/lib
  866.     If you put this in a shell script or your .profile, use
  867.     ${OPENWINHOME-/usr/openwin}/lib instead of /usr/openwin; this is for
  868.     /bin/sh; for csh it is different.
  869.  
  870. @ I launch my filemgr and I get ld.so:map heap error (9) at /dev/zero
  871.     Your system needs to be patched.  Look in $OPENWINHOME/lib/OSpatches
  872.     and install the patch.
  873.  
  874. @ Why doesn't AnswerBook run for me?
  875.     You must be running OpenWindows to use AnswerBook.    It won't run under
  876.     X11 (on an X terminal or on anything else) because it uses NeWS to draw
  877.     the PostScript text and pictures.
  878.     If you are using OpenWindows 3.0, you need to use the OpenWindows 3.0
  879.     compatible navigator; it's called .navigator.ow3 on the AnswerBook CD/ROM.
  880.     If all AnswerBook users are using OpenWindows 3.0, you can replace
  881.     navigator wih .navigator.ow3 altogether (rename the old one first to
  882.     satisfy your sense of paranoia!)
  883.     The navigator.ow3 binary is also on CD/Ware Vol 2.
  884.     Note that the data files are in PostScript, so you can look at them with
  885.     a PostSript viewer (q.v.).
  886.  
  887. @ Why aren't there any fish in realxfishdb?
  888.     A fixed version of realxfishdb is available by ftp from
  889.     ftp.eng.auburn.edu [131.204.10.91] as /pub/realxfishdb.Z
  890.  
  891. @ Why is the Properties choice disabled in the Window menu?
  892.     It isn't implemented yet.  Many programs do respond to the Properties
  893.     Key (L3), though, or have a pop-up menu with Properties on it.
  894.     Under Solaris 2, programs using the NeWS toolkit (TNT, q.v.) take one
  895.     last sneer at X by providing a Properties menu that lets you rotate or
  896.     scale the window!  Try $OPENWINHOME/demo/{rap,jet,jed,text} for example.
  897.  
  898. @ File completion in the C-shell is broken in cmdtool
  899.     Sadly true, but use shelltool or xterm instead and it's fine.  It also
  900.     works if you run command tool on a remote machine.
  901.     Fixed in Solaris 2, and presumably in the XView 3.2 distribution.
  902.  
  903. @ When I run OLIT programs, some of the widgets are red!
  904.     Release 3 of OLIT added mouseless operation; action widgets can be
  905.     selected via the keyboard.  The currently selected item is highlighted
  906.     in red (the `Red Stain') to show that it has the input focus.
  907.     To disable it in most places, add this to your $HOME/.Xdefaults file:
  908.     *traversalOn: off
  909.     *TextEdit.traversalOn: on
  910.     *TextField.traversalOn: on
  911.     You can change the color using (for example)
  912.     *InputFocusColor: grey50
  913.     *input*FocusColor: green
  914.     *List*inputFocusColor: <your background color>
  915.     See the man page resources(3w), at the start of the OLIT 3 Widget Set
  916.     Reference Manual included in the OpenWindows 3 programmer documentation.
  917.     Meanwhile contact your distributor and ask for patch id 100451-30, the
  918.     OLIT/3.0 CTE Jumbo Patch.
  919.  
  920.     Solaris 2 includes an OLIT that uses the Giant Caret, just like XView.
  921.  
  922. @ When I run several programs, the colors on the screen all change when
  923.   I move into a different window! ("colormap flashing")
  924.     
  925.     This is becasue most hardware can only display a few colors at a time.
  926.     However, you can minimise the effect with the following procedure:
  927.     *  Start all the applications with colors that you wish to reserve.
  928.     *  Run
  929.     cmap_compact save
  930.        to create the .owcolors file
  931.     *  Put the line
  932.     cmap_compact init
  933.        near the start of your start-up file (.xinitrc)
  934.     *  Exit and then restart the window system.
  935.     *  cmap_compact init will push those colors .owcolors to the end of
  936.     the colormap and reserves them.
  937.  
  938.     Also note that control-L2 locks the colors of the current window, and
  939.     Control-L4 unlocks them -- this is described in the olwm manual page.
  940.  
  941. @ pageiew uses the wrong colors, or makes the colormap flash (see above):
  942.     This problem was reported by people for some reason running the Motif
  943.     window manager (mwm) with OpenWindows.
  944.     Try running pageview like this:
  945.     $OPENWINHOME/bin/reservecolors -svmono
  946.     $OPENWINHOME/bin/pageview
  947.     $OPENWINHOME/bin/reservecolors -discard
  948.  
  949. @ XDM breaks things
  950.     Command tool doesn't like being run without a Unix `controlling terminal'.
  951.     Use /etc/setsid to start your command tools and all will be well.
  952.     SunView applications may need to be run with svenv, as in
  953.     svenv -exec /usr/bin/traffic
  954.     because xdm won't set the necessary environment variables.
  955.     (You can't run SunView programs on an X terminal, of course!)
  956.     Note that the MIT xdm starts up the X server as root, which is a security
  957.     hole for OpenWindows; use the OpenWindows 3.0 xdm or be aware that your
  958.     users can access files and start Unix processes as root...
  959.  
  960. @ Function keys 11 and 12 stopped working
  961.     In OpenWindows 3.0, the X11 names ("keysyms") for these keys was changed
  962.     to SunXK_F36 and SunXK_F37.     Code which uses them should be recompiled,
  963.     or you might be able to get away with
  964.     xmodmap -e 'keysym SunXK_F36 = SunF36'
  965.  
  966. @ Motif applications make my screen hang
  967.    Apply patch 100444-48.
  968.    Note that Motif menus that lock up the screen can be taken down by
  969.    pressing Escape at them.
  970.  
  971. [the xview section is now posted separately]
  972.  
  973. Subject: Environment Variables
  974.  
  975.     Environment variables, and plausible values to use -- this list doesn't
  976.     take into account any local changes that you might have made, of course.
  977.     This list is for OpenWindows 3.0 -- differences for OpenWindows 2.0 are
  978.     marked, and I've added some comments for users of X11R4 and X11R5, too.
  979.  
  980.     DISPLAY  The name of the X Windows Display to use
  981.     :0.0 (on the local machine, the one actually running X11 or xnews)
  982.     :0.1 (on some machines for a second, monochrome screen)
  983.     machine-running-unix:0.0 (on other machines)
  984.     (You may need to do "xhost +other-machine" to let programs on other
  985.     machines use your display; see also under Trouble Shooting, and see
  986.     the section on xauth in the OpenWindows Version 3 Programmer's Guide,
  987.     pp. 101ff)
  988.     See also: console messages, under Trouble Shooting
  989.     FONTPATH  Where xnews searches for fonts
  990.     /usr/openwin/lib/fonts
  991.     (you can also use "xset fp+ dir" to add a directory to the font path,
  992.     but you may have to do "xset fp rehash" afterwards.  This is fine
  993.     under OpenWindows, but many X11 servers have font problems)
  994.     HELPPATH  Where XView looks when you press the Help key (or F1)
  995.     /usr/openwin/lib/locale:/usr/openwin/lib/help
  996.     (On SunOS 4.0.*, or with OpenWindows 2.0, omit the first entry, which
  997.     is for sites using a local other than "C" or "USA").
  998.     LD_LIBRARY_PATH   Where to look to find shared C libraries
  999.     /usr/lib:/usr/5lib:/usr/openwin/lib:/usr/CC/`arch`
  1000.     (the /usr/CC/`arch`/lib entry is only needed if you use C++ programs)
  1001.     OPENWINHOME     Where OpenWindows lives
  1002.     /usr/openwin  
  1003.     KEYBOARD, MOUSE -- serial devices to use instead of the console
  1004.     (don't set these for normal use; /dev/kbd and /dev/mouse)
  1005.     PATH  Where the Shell searches for programs to run
  1006.     $(OPENWINHOME)/bin:$(OPENWINHOME)/bin/xview:/usr/local/bin:.\
  1007.     $HOME/bin.`arch`:/usr/ucb:/usr/bin:/usr/bin/X11:/usr/hosts:\
  1008.     (you will certainly want to change this example!  There is no
  1009.     $(OPENWINHOME)/bin/xview in OpenWindows 3.0)
  1010.     XFILESEARCHPATH  Where programs look for app-defaults files
  1011.     /usr/openwin/lib/%T/%N%S
  1012.         (This is set automatically by "openwin" in OpenWindows 3.0)
  1013.         You might want to use /usr/lib/X11/%T/%N%S, or perhaps both,
  1014.         separated with a :, for example (for sh users)
  1015.             XFILESEARCHPATH=$OPENWINHOME/lib/%T/%N%S:/usr/lib/X11/%T/%N%S
  1016.         export XFILESEARCHPATH
  1017.     If you use X11R5, you might instead want
  1018.         /usr/lib/X11/%L/%T/%N%C%S:
  1019.         /usr/lib/X11/%l/%T/%N%C%S:
  1020.         /usr/lib/X11/%T/%N%C%S:
  1021.         /usr/lib/X11/%L/%T/%N%S:
  1022.         /usr/lib/X11/%l/%T/%N%S:
  1023.         /usr/lib/X11/%T/%N%S:
  1024.         $OPENWINHOME/lib/%T/%N%S
  1025.     (put all this on one line, though, with no spaces!)
  1026.  
  1027.     Together with the following in lib/Xinitrc
  1028.     xrdb -merge <<'END_XRDB'
  1029.        *customization:
  1030.     END_XRDB
  1031.  
  1032.     xrdb -merge <<'END_XRDB'
  1033.     #ifdef COLOR
  1034.        *customization:  -color
  1035.     #endif
  1036.     END_XRDB
  1037.  
  1038.     you automatically get a color oclock, editres, bitmap, xcalc, and
  1039.     xlogo since they use the "*customization" resource appearing as %C in
  1040.     the XFILESEARCHPATH. (see oclock (n))
  1041.     according to Rainer Sinkwitz <sinkwitz@ifi.unizh.ch>.
  1042.  
  1043.  
  1044. Subject: Where Can I get It? Ftp, implementations, etc...
  1045.  
  1046.     XView 3.2 is available by anonymous ftp from export.lcs.mit.edu and
  1047.     elsewhere.
  1048.  
  1049.     MoOLIT can be bought from AT&T in source form.
  1050.  
  1051.     OpenWindows can be obtained from Sun, or you can get the source from
  1052.     Interactive Systems Inc.  It is also included in some vendors' System V
  1053.     Release 4 implementations, although that's not always the latest version.
  1054.     The current release of OpenWindows from Sun for supported architectures
  1055.     is 3.0; for the Sun 3 series it is frozen at OpenWindows 2.0.
  1056.     Note that Sun includes OpenWindows with SunOS, and it is also included as
  1057.     the windowing system for Solaris.
  1058.  
  1059.     There are said (by Sun) to be over 35 ports of OpenWindows either
  1060.     available now or in progress.  Unfortunately, none of them seem to
  1061.     be available from anywhere.  Contact anthony@ovi.com for more information.
  1062.  
  1063.  
  1064. Subject: Bibliography: books, manuals, journals, papers, beer-mats
  1065.  
  1066.     The OPEN LOOK (tm) Graphical Interface is documented in two books:
  1067.     Sun Microsystems Inc., `OPEN LOOK Graphical User Interface Application
  1068.     Style Guidelines', Addison Wesley, 1989
  1069.     and
  1070.     Sun Microsystems Inc., `OPEN LOOK Graphical User Interface Functional
  1071.     Specification', Addison Wesley
  1072.  
  1073.     The Main documentation for the X Window system comes from
  1074.     O'Reilly & Associates in about nine or ten volumes.
  1075.     The most useful for OPEN LOOK users are:
  1076.     Volume 1: XLib Programming Manual
  1077.     Volume 2: XLib Reference Manual
  1078.     Volume 3: X Window System User's Guide
  1079.         (An OPEN LOOK edition of Volume 3 should appear later this year)
  1080.     Volume 7: XView Programmer's Manual [Dan Heller]
  1081.         [make sure you get the edition for XView 3.2]
  1082.     Companion to Volume 7: XView Reference Manual [Ed. Thomas Van Raalte]
  1083.  
  1084.     The Companion to Volume 7 is an expanded version of the Attribute
  1085.     Summary from the previous edition of the XView Programming Manual,
  1086.     together with other reference information, so that in practice you
  1087.     have to buy both books.
  1088.  
  1089.     Unfortunately, the 3.2 edition covers the features new since 3.0
  1090.     only in an appendix, but it's still pretty helpful, and the attributes
  1091.     have been merged in the summary; in addition, much of the book has
  1092.     been reworked, so that it's worth considering the 3.2 edition even
  1093.     if you're using 3.0.
  1094.  
  1095.     O'Reilly also have a thinnish orange book on the differences between
  1096.     X11R4 and RX115.
  1097.  
  1098.     OLIT programmers will also want the Xt books - volumes 4 and 5.
  1099.     There is a new big fat green Vol 5 updated for X11R5.  Make sure you
  1100.     don't get the Motif versions of these books by mistake.
  1101.  
  1102.     A journal, The X Resource, may also be of interest.
  1103.  
  1104.     O'Reilly & Associates, 103 Morris Street, Suita A, Sebastopol, CA 95472
  1105.     +1 707 829-0515, or, in the USA and Canada only, 1-800-998-9938
  1106.     Fax: +1 707-829-0104.
  1107.     Email nuts@ora.com or uunet!ora!nuts.
  1108.     For other distributors: mail, FAX, or call +1 707-829-0515.
  1109.  
  1110.     Some of the O'Reilly examples are available for ftp from
  1111.     export.lcs.mit.edu in the contrib/OReilly directory.
  1112.  
  1113.     The System V Release 4 Documentation from Prentice Hall may also include
  1114.     a section on OpenWindows.
  1115.  
  1116.     David Miller describes programming with OLIT in his
  1117.     `An OPEN LOOK At Unix' (M&T press).
  1118.     
  1119.     Nabajyoti Brkakati gives an excellent introduction to X and to OLIT
  1120.     programming, as well as setting up and using X and OpenWindows, in:
  1121.     `Unix[R] Desktop Guide to OPEN LOOK' SAMS, 1992  ISBN 0-672-30023-0
  1122.     You can get the examples from this book as
  1123.         export.lcs.mit.edu:contrib/naba-olguide-examples.tar.Z
  1124.  
  1125.     Also about using OLIT, and Xt in particular:
  1126.     The X Window System: Programming and Applications with Xt,
  1127.     OPEN LOOK Edition, Doug Young and John Pew, Prentice Hall, 1992,
  1128.     ISBN 0-13-982992-X
  1129.     There are also HP Widgets and Motif (ugh) versions of this book.
  1130.     The example source code in this book can be obtained by ftp from
  1131.     export.lcs.mit.edu, file "contrib/young.pew.olit.Z".
  1132.  
  1133.     There is an introduction to XView in
  1134.     `Writing Applications For Sun Systems', Vol 1, `A Guide for
  1135.     Macintosh(R) Programmers' (Sun Microsystems, pub. Addison Wesley)
  1136.     
  1137.     Another recent XView book is
  1138.     `Practical XView Programming', Kenneth W. Bibb and Larry Wake,
  1139.     John Wiley & Sons, Inc., 1993, ISBN 0-471-57460-0
  1140.     You can get the examples from this book as
  1141.         export.lcs.mit.edu:/contrib/xvprac.tar.Z
  1142.  
  1143.     Neither of these two XView books elimiates the need for the O'Reilly
  1144.     X Series vols 1, 2 and 7.
  1145.  
  1146.     To learn more about the NeWS and PostScript languages, see
  1147.  
  1148.     The NeWS Book, Springer Verlag, 1989 (sadly, a little out of date)
  1149.  
  1150.     PostScript Language Reference Manual, Second Edition,
  1151.     Adobe Systems Inc., Addison Wesley, 1990 ["the Red Book"]
  1152.         Note that OpenWindows 3 is a level 1 PostScript implementation,
  1153.         with certain Level 2 features (such as Composite Fonts) to some
  1154.         degree.
  1155.     
  1156.     PostScript Language Tutorial and Cookbook,
  1157.     Adobe Systems Inc., Addison Wesley, 1985 ["The blue book"]
  1158.     
  1159.     There are several books on using Solaris (i.e. SunOS).
  1160.     See the FAQ in the Solaris newsgroup.  I'll mention here:
  1161.     `Solaris Porting Guide', SunSoft ISV Engineering et. al.,
  1162.     1993, SunSoft Press (Prentice Hall), ISBN 0-13-030396-8
  1163.     for an excellent (if sometimes over-ebullient) introduction to the
  1164.     differences and new features of Solaris 2, including a clear section
  1165.     on localisation and internationalisation.   Includes diskette.
  1166.  
  1167.     Sun also supplies a large amount of documentation with OpenWindows,
  1168.     although you may have to order it separately.  Here's what I have; they
  1169.     are each a little over 21 cm square (wider than A4 paper), and vary from
  1170.     about 1 cm to about 3cm thick.  They say `User's Guide' or `Programmer's
  1171.     Guide' on the front.  The User manuals have a red stripe on the bottom,
  1172.     and the Programmer ones have a green stripe.
  1173.  
  1174.     Note:
  1175.     the Solaris 2 documentation sets are red, blue and silver.
  1176.     Watch in particular for small spiral-bound task-oriented `how-to'
  1177.     booklets in the Solaris 2 documentation.
  1178.  
  1179.     Here are the OpenWindows 3.0 part numbers for SunOs 4:
  1180.  
  1181.     800-6006-10 OpenWindows Version 3 Release Manual
  1182.     800-6029-10 OpenWindows Version 3 Installation and Start-Up Guide
  1183.     800-6231-10 OpenWindows Version 3 DeskSet Reference Guide
  1184.     800-6618-10 OpenWindows Version 3 User's Guide
  1185.     800-6323-10 Desktop Integration Guide [also available in bookstores?]
  1186.     800-6027-10 Programmer's Guide
  1187.     800-6005-10 OpenWindows Version 3 Reference Manual [the man pages]
  1188.     800-6319-10 The NeWS Toolkit 3.0 Reference Manual
  1189.     800-6736-10 NeWS 3.0 Programming Guide
  1190.     800-6055-10 OLIT 3.0 Widget Set Reference Manual
  1191.     800-6198-10 XView 3.0 Reference Manual: Converting SunView Applications
  1192.  
  1193.     800-6854-10 F3 Font Format Specification [order separately]
  1194.  
  1195.     There are also some other sets of documentation, including the TypeScaler
  1196.     documentation from the OpenFonts group, for example.  There doesn't seem
  1197.     to be a complete list anywhere.
  1198.  
  1199.     ??????????? ToolTalk 1.0 Setup and Administration Guide (SunSoft, 1991)
  1200.     800-6093-10 ToolTalk 1.0 Programmer's Guide (SunSoft, 1991)
  1201.     There might be documentation about the Link Manager somewhere, too;
  1202.     I am not sure what happened to the Link Manager, is that part of DOE??
  1203.  
  1204.     AT&T includes several large thorny bushes' worth of paper with OLIT.
  1205.  
  1206.     Sun's AnswerBook CD/ROM contains a lot of the above documentation.
  1207.  
  1208.     Volume 8 of the O'Reilly series is about X Administration, and mentions
  1209.     OpenWindows, although it is primarily aimed at X11R5.  A CD/ROM is
  1210.     included, which contains a working X11R5 distribution.  This book will
  1211.     be of particular use with OpenWindows 2.3, based on X11R5.
  1212.  
  1213.  
  1214. Subject: Getting this File, Revision History, Recent Changes
  1215.  
  1216.     Mail lee@sq.com to ask for it.  Douglas N. Arnold (dna@math.psu.edu)
  1217.     keeps an up-to-date copy on ftp.math.psu.edu (currently 146.186.131.129)
  1218.     in the file ~ftp/pub/FAQ/open-look.
  1219.  
  1220.     If you can do gopher or XMosaic, you can also see Andrew Violette's
  1221.     spectacular hypertext version of this document at:
  1222.     http://cs.indiana.edu/faq/OpenLook/front_page.html
  1223.  
  1224.  
  1225. # @(#) $Id: open-look.faq,v 1.49 93/11/12 20:35:57 lee Exp Locker: lee $
  1226.  
  1227.  
  1228. Acknowledgements:
  1229.     Dale Dougherty <dale@ora.com> (Nov/info about new XView book)
  1230.     Antonio Freixas <tonyf@ims.com> (Nov/Motif patch and Escape tip)
  1231.     Karl Glazebrook <kgb@mail.ast.cam.ac.uk> (Motif copy/paste)
  1232.  
  1233.     And many others...    You get deleted from this list after a while.
  1234.  
  1235. -- 
  1236. Liam Quin, Manager of Contracting, SoftQuad Inc +1 416 239 4801 lee@sq.com
  1237. HexSweeper NeWS game;OPEN LOOK/XView/mf-fonts FAQs;lq-text unix text retrieval
  1238.  
  1239. who is my neighbour?
  1240.